//导入包
import VueRouter from 'vue-router'

//引入组件
import HomeContainer from './vue/components/tabbar/HomeContainer.vue'
import SearchContainer from './vue/components/tabbar/SearchContainer.vue'
import MemberContainer from './vue/components/tabbar/MemberContainer.vue'
import ShopCarContainer from "./vue/components/tabbar/ShopCarContainer.vue"


//创建路由对象
var router = new VueRouter({
    routes: [
        {path:'/',redirect:'/home'},
        {path: '/home',component:HomeContainer},
        {path: '/search',component:SearchContainer},
        {path: '/member',component:MemberContainer},
        {path: '/shopcar',component:ShopCarContainer}
    ],
    linkActiveClass: 'mui-active'  //覆盖默认路由高亮的类
})

//暴露对象
export default router